<?php
require_once 'BrowseWsdlService.php';
$hello = new BrowseWsdlService();
$from = new book();
$to = new book();
$offset = 0;
$limit = 10;
$search = new searchBooks($from, $to, $offset, $limit);
$ret = $hello->searchBooks($search);
print $ret;
?>


/*
small test using http://www.urdalen.no/wsdl2php/manual.php

wget http://downloads.sourceforge.net/project/wsdl2php/wsdl2php/wsdl2php-0.2.1-pear/wsdl2php-0.2.1-pear.tgz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fwsdl2php%2F&ts=1323178910&use_mirror=dfn
mv wsdl2php-0.2.1-pear.tgz\?r\=http\:%2F%2Fsourceforge.net%2Fprojects%2Fwsdl2php%2F wsdl2php-0.2.1-pear.tgz
sudo apt-get install php-pear
sudo pear install wsdl2php-0.2.1-pear.tgz 
wsdl2php 'http://frans.webhop.org:8080/nl/boektrust/btsoep/server/wsdl/nl/boektrust/btsoep/server/wsdl/WsdlBrowse?wsdl'
ls WsdlBrowseImplService.php
php hello.php 

PHP Fatal error:  Uncaught SoapFault exception: [soap:Server] javax.xml.ws.handler.MessageContext$Scope is a restricted class. Please see the Google  App Engine developer's guide for more details. in /tmp/pfffffffffff/WsdlBrowseImplService.php:57
Stack trace:
#0 /tmp/pfffffffffff/WsdlBrowseImplService.php(57): SoapClient->__soapCall('searchBooks', Array, Array)
#1 /tmp/pfffffffffff/hello.php(10): WsdlBrowseImplService->searchBooks(Object(searchBooks))
#2 {main}
  thrown in /tmp/pfffffffffff/WsdlBrowseImplService.php on line 57


attempt 2:
wsdl2php 'http://frans.webhop.org:8080/jaxws/wsgen/wsdl/BrowseWsdlService.wsdl'
ls BrowseWsdlService.php
php hello.php 

SEVERE: SAAJ0535: Unable to internalize message
15:47:10.370 [2020350594@qtp-247420245-0] ERROR n.b.b.server.wsdl.BrowseSoapServlet - Exception while creating SOAP message:
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
...
SEVERE: SAAJ0535: Unable to internalize message
15:47:10.370 [2020350594@qtp-247420245-0] ERROR n.b.b.server.wsdl.BrowseSoapServlet - Exception while creating SOAP message:
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
...
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) ~[appengine-tools-sdk-1.6.0.jar:na]
...
Caused by: java.lang.NoClassDefFoundError: com.sun.org.apache.xerces.internal.dom.DocumentImpl is a restricted class. Please see the Google  App Engine developer's guide for more details.
...

*/
